<?php

function run_profile_app($action = 'info') {
	$action = trim($action);
	switch ($action) {
	case 'password':
		require APP_PATH . '/' . APP_ADMIN_NAME . '/profile/password.php';
		break;
	case 'info':
		require APP_PATH . '/' . APP_ADMIN_NAME . '/profile/info.php';
		break;
	default:
		$action = 'info';
		require APP_PATH . '/' . APP_ADMIN_NAME . '/profile/info.php';
		break;
	}

	if (function_exists('profile_' . $action . '_action')) {
		call_user_func('profile_' . $action . '_action');
	}
}